// 重置样式
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
    Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  background-color: #f7f8fa;
  color: #323233;
}

// 适老化设计
button, input, select, textarea {
  font-size: 18px;
}

// 防误触
.van-button {
  min-height: 44px;
  margin: 10px 0;
}

// 大字体
.van-nav-bar__title {
  font-size: 20px;
}

.van-cell__title {
  font-size: 18px;
}

.van-field__label {
  font-size: 18px;
}

.van-tab {
  font-size: 18px;
}

// 间距调整
.van-cell {
  padding: 15px 16px;
}

// 颜色定义
:root {
  --primary-color: #1989fa;
  --success-color: #07c160;
  --danger-color: #ee0a24;
  --warning-color: #ff976a;
  --text-color: #323233;
  --text-color-light: #969799;
  --border-color: #ebedf0;
  --background-color: #f7f8fa;
}

// 通用动画
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

// 滚动条样式
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #999;
}

// 工具类
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-bold {
  font-weight: bold;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} 